package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtPreOrderStockLog;
import com.ymttest.database.model.YmtProductExt;
import com.ymttest.database.model.YmtProductVideo;

public class YmtProductVideoWapper {
	SqlManager manage;

	public YmtProductVideoWapper() {
		manage = new SqlManager("intpro");
	}
	
	public List<YmtProductVideo> selectByProductId(String productId)throws InterruptedException{
		  @SuppressWarnings("unchecked")
		List<YmtProductVideo>  m = manage.getSelectResults(
		            "com.ymttest.database.mapping.YmtProductVideoMapper.selectByProductId", productId);
		    manage.commit();
		    return m;
	}
	public static void main(String[] args) throws InterruptedException {
		System.out.println(new YmtProductVideoWapper().selectByProductId("a90d6f7a-0448-4453-969e-446f0e307b9d").get(0).getExtId());
	}
}
